<!--
 * @Author: your name
 * @Date: 2021-04-07 14:53:19
 * @LastEditTime: 2021-04-27 18:59:56
 * @LastEditors: Please set LastEditors
 * @Description: 声明
 * @FilePath: /medicine-web/src/views/statement/index.vue
-->
<template>
  <div class="statement-container">
    <p class="statement-title">声明</p>
    <div class="statement__content font-pattern-3">
      <p style="margin-bottom: 21px;" v-html="content"></p>
    </div>
  </div>
</template>
<script>
export default {
  name: 'statement',
  data () {
    return {
      content: ''
    }
  },
  mounted () {
    this.fetchData()
  },
  methods: {
    async fetchData () {
      const res = await this.$action('getSinglePageData', { id: 3 })
      if (res && Object.keys(res).length > 0) {
        this.content = res.content
      }
    }
  }
}
</script>
<style lang="scss" scoped>
@import '~@/assets/styles/flex.scss';
@import '~@/assets/styles/common.scss';
.statement-container {
  width: 1100px;
  padding: 58px 0px 121px 0px;
  margin: 0 auto;
  .statement-title {
    text-align: center;
    font-size: 1.25rem;
    color: #555555;
    font-weight: bold;
    margin-bottom: 25px;
  }
}
</style>